#include <iostream>
#include <string>

 using namespace std;

int main(int argc, char *argv[])
{
	cout << "There are " << argc << " arguments:" << endl;
	string arg;
	for (int nArg=0; nArg < argc; nArg++)
	{
		arg=argv[nArg];
		cout << nArg << " " << arg << endl;
	}
	arg=argv[1];
	cout << "The filename is " << " " << arg << endl;
   
	return 0;

}
